package vip.liux.front.domain.models.payment;

import org.springframework.plugin.core.Plugin;
import vip.liux.front.domain.shared.payment.PayGateway;

import java.util.Map;

public interface IPaymentGateway extends Plugin<PayGateway> {

    /**
     * 支付
     *
     * @param paymentRequest 支付请求
     * @param properties     扩展属性
     * @return 支付结果
     */
    boolean isValid(PaymentRequest paymentRequest, Map<String, Object> properties);
}
